package unibz.thaison.iosa;

import java.util.ArrayList;

public class Card 
{		
	private String idList;
	private String participants = "";
	private ArrayList<String> memberNames = new ArrayList<String>();
	private String name;
	private String description;
	private String url;
	
	public Card()
	{
	}
	
	public void setIdList (String id)
	{
		idList = id;
	}
	
	public String getIdList()
	{
		return idList;
	}
	
	public void setParticipants()
	{
		for (int i = 0; i < memberNames.size(); i++)
		{
			if (i == memberNames.size() - 1)
			{
				participants += "" + memberNames.get(i);
				break;
			}
			participants += "" + memberNames.get(i) + "; ";
		}
	}
	
	public String getParticipants()
	{
		return participants;
	}
	
	public void addMemberName (String name)
	{
		memberNames.add(name); 
	}
	
	public ArrayList<String> getAllMemberNames()
	{
		return memberNames;
	}
	
	public void setName (String n)
	{
		name = n;
	}
	
	public String getName()
	{
		return name;
	}
	
	public void setDescription (String desc)
	{
		description = desc;
	}
	
	public String getDescription()
	{
		return description;
	}
	
	public void setUrl (String u)
	{
		url = u;
	}
	
	public String getUrl()
	{
		return url;
	}
}
